{
    "elements": [
        @foreach ($sourceData as $sourceKey => $source)
        {
            "tag": "column_set",
            "flex_mode": "none",
            "background_style": "grey",
            "columns": [
                {
                    "tag": "column",
                    "width": "weighted",
                    "weight": 1,
                    "vertical_align": "top",
                    "elements": [
                        {
                            "tag": "markdown",
                            "content": "**RDC名称**:  {{$source['name']}} "
                        },
                        {
                            "tag": "column_set",
                            "flex_mode": "none",
                            "background_style": "default",
                            "columns": [
                                {
                                    "tag": "column",
                                    "width": "weighted",
                                    "weight": 1,
                                    "vertical_align": "top",
                                    "elements": [
                                        {
                                            "tag": "markdown",
                                            "content": "**上架数**\n{{$source['shelvesNum']}}"
                                        }
                                    ]
                                },
                                {
                                    "tag": "column",
                                    "width": "weighted",
                                    "weight": 1,
                                    "vertical_align": "top",
                                    "elements": [
                                        {
                                            "tag": "markdown",
                                            "content": "**上架率**\n{{$source['shelvesRate']}}%"
                                        }
                                    ]
                                },
                                {
                                    "tag": "column",
                                    "width": "weighted",
                                    "weight": 1,
                                    "vertical_align": "top",
                                    "elements": [
                                        {
                                            "tag": "markdown",
                                            "content": "**缺货数**\n{{$source['shortageNum']}}"
                                        }
                                    ]
                                },
                                {
                                    "tag": "column",
                                    "width": "weighted",
                                    "weight": 1,
                                    "vertical_align": "top",
                                    "elements": [
                                        {
                                            "tag": "markdown",
                                            "content": "**缺货率**\n <font color='green'> {{$source['shortageRate']}}%</font>"
                                        }
                                    ]
                                }
                            ]
                        }
                    @if ($source['shortageNameGroup'])
                        ,
                        {
                            "tag": "column_set",
                            "flex_mode": "none",
                            "background_style": "default",
                            "columns": [
                                {
                                "tag": "column",
                                "width": "weighted",
                                "weight": 1,
                                "vertical_align": "top",
                                "elements": [
                                        {
                                            "tag": "markdown",
                                            "content": "**缺货明细：**\n<font color='red'> {{$source['shortageNameGroup']}}</font>"
                                        }
                                    ]
                                }
                            ]
                        }
                    @endif

                    ]
                }
            ]
        }
        @if ($sourceKey != count($sourceData) - 1)
    ,
        @endif
        @endforeach
    ],
    "header": {
        "template": "wathet",
        "title": {
            "content": "SKU日结监控 【 {{$executeDate}} 】",
            "tag": "plain_text"
        }
    }
}
